package net.uhuijia.software.softwarerequest.service;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import net.uhuijia.appbase.service.BaseService;
import net.uhuijia.software.softwarerequest.persistence.model.SoftwareRequest;
import net.uhuijia.software.softwarerequest.persistence.model.SoftwareRequestExample;
import net.uhuijia.user.usermall.persistence.model.UserMall;


@Service
@Transactional
public interface SoftwareRequestService
     extends BaseService<SoftwareRequest,SoftwareRequestExample> {

	/**
	 * 获得用户指定页数的历史请求
	 * @param user
	 * @return list
	 */
	List<SoftwareRequest> listUserHistoryRequestAndPage(HttpServletRequest request, UserMall user);

	/**
	 * 统计用户总共多少条记录
	 * @param user 用户信息
	 * @return 数量 
	 */
	Integer countUserHistoryRequest(UserMall user);
}